package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginViewController {
    //采用ThymeLeaf编写一个登录表单
    @RequestMapping("/login")
    public String toLogin(){
        return "login";
    }

    @RequestMapping("/main")
    public String toMain(){
        return "main";
    }

    @RequestMapping("/loginFail")
    public String toFail(){
        return "fail";
    }
}
